package comday03.itheima01;

public class Demo02输出1到5 {
    public static void main(String[] args) {


        //输出1-5
        for(int i=1; i<=5; i++){
            System.out.println(i);
        }


        //输出5-1
        for(int i=5; i>=1; i--){
            System.out.println(i);
        }



    }
}
